import '../config/constant.dart';

class Api {
  static String baseUrl = Constant.isTest
      ? "https://integ.aphaea.cn/gowy"
      : "http://10.90.152.45:9909";

  ///刷新token
  static String refreshToken = "$baseUrl/rt";

  ///上传图片接口
  static String uploadImage = "https://integ.aphaea.cn/gowy/file/localUpload";

  ///-------------------登录模块---------------------------------------

  ///业主端手机号登录
  static String loginWithOwner = "$baseUrl/app/mobile/user/certification";

  ///业主端获取手机验证码
  static String sendCode = "$baseUrl/app/mobile/user/sendCode";

  ///物业端获取手机验证码
  static String sendCodeWithProperty =
      "$baseUrl/app/property/certification/phone/code";

  ///物业端密码登录
  static String loginByPwd =
      "$baseUrl/app/property/certification/username/password";

  ///物业端手机号登录
  static String loginByPhone = "$baseUrl/app/property/certification/phone/code";

  ///重置密码第一步
  static String resetPwdFirstStep =
      "$baseUrl/app/property/certification/password/first";

  ///重置密码第二部
  static String resetPwdSecondStep =
      "$baseUrl/app/property/certification/password/second";

  ///重置密码第三步
  static String resetPwdThirdStep =
      "$baseUrl/app/property/certification/password/third";

  ///-------------------认证模块---------------------------------------

  ///获取城市列表
  static String cityList = "$baseUrl/app/owner/village/cities";

  ///获取某城市下的详细社区信息
  static String cityDetail = "$baseUrl/app/owner/village/villages";

  ///上传认证信息
  static String submitRoomInformation = "$baseUrl/app/mobile/user/checkRoom";

  ///--------------------主页模块----------------------------------------

  ///获取房屋列表
  static String getRoomList = "$baseUrl/app/mobile/user/room/list";

  ///获取轮播列表
  static String getBannerList = "$baseUrl/app/mobile/common/carouselChart/list";

  ///是否有新消息（账单、工单、公告）
  static String getExistNewMsg = "$baseUrl/app/mobile/user/existNewMsg";

  ///获取公告列表
  static String getNoticeList = '$baseUrl/app/mobile/user/notice/list';

  ///获取公告详情
  static String getNoticeInfo = '$baseUrl/app/mobile/user/notice/info';

  ///公告一键已读
  static String noticeAllRead = '$baseUrl/app/mobile/user/notice/all/read';

  ///获取服务列表
  static String getServiceList = '$baseUrl/app/mobile/user/service/list';

  ///获取服务详情
  static String getServiceInfo = '$baseUrl/app/mobile/user/service/info';

  ///账单列表接口
  static String getBillList = '$baseUrl/app/owner/bill/list';

  ///账单详情接口
  static String getBillDetailList = '$baseUrl/app/owner/bill/detail';

  ///账单年份
  static String getBillYearList = "$baseUrl/app/owner/bill/years";

  ///工单列表接口
  static String getOrderList = '$baseUrl/app/owner/work/order/list';

  ///新增工单接口
  static String addOrder = '$baseUrl/app/owner/work/order';

  ///评价工单
  static String appraiseOrder = '$baseUrl/app/owner/work/order/appraise';

  ///故障类型列表接口
  static String getFaultType = '$baseUrl/app/owner/work/order/fault/type/list';

  ///取消工单接口。
  static String cancelOrder = '$baseUrl/app/owner/work/order/cancel';

  ///业主端工单详情接口。
  static String getOwnerOrderDetail = '$baseUrl/app/owner/work/order/detail';

  ///工单处理结果接口。
  static String getOrderDealResult =
      '$baseUrl/app/owner/work/order/deal/result';

  ///获取物业端小区列表接口
  static String getPropertyVillages = '$baseUrl/app/property/village/villages';

  ///切换物业端小区接口
  static String changePropertyVillage =
      '$baseUrl/app/property/personal/village/change';

  ///获取物业端公告列表
  static String getPropertyNoticeList =
      '$baseUrl/app/mobile/property/notice/list';

  ///获取物业端公告详情
  static String getPropertyNoticeInfo =
      '$baseUrl/app/mobile/property/notice/info';

  ///公告一键已读（物业端）
  static String propertyNoticeAllRead =
      '$baseUrl/app/mobile/property/notice/all/read';

  ///获取物业端是否有新消息（账单、工单、公告）
  static String getPropertyExistNewMsg =
      '$baseUrl/app/property/personal/existNewMsg';

  ///维修标准列表接口
  static String getRepairStandardList =
      '$baseUrl/app/property/work/order/repair/standard/list';

  ///工单各状态的数量接口
  static String getPropertyOrderCount =
      '$baseUrl/app/property/work/order/count';

  ///工单列表接口
  static String getPropertyWorkOrderList =
      '$baseUrl/app/property/work/order/list';

  ///接单接口
  static String propertyOrderReceive =
      '$baseUrl/app/property/work/order/receive';

  ///转单接口
  static String propertyOrderTransfer =
      '$baseUrl/app/property/work/order/transfer';

  ///完工接口
  static String propertyOrderComplete =
      '$baseUrl/app/property/work/order/complete';

  ///挂单接口
  static String propertyOrderPending = '$baseUrl/app/property/work/order/hung';

  ///取消挂单接口
  static String propertyOrderCancelPending =
      '$baseUrl/app/property/work/order/hung/cancel';

  ///挂单接口
  static String propertyOrderRegistration =
      '$baseUrl/app/property/work/order/registration';

  ///物业端工单详情接口
  static String getPropertyOrderDetail =
      '$baseUrl/app/property/work/order/detail';

  ///物业端工单处理结果详情接口
  static String getPropertyOrderResult =
      '$baseUrl/app/property/work/order/deal/result';

  ///维修部门列表接口
  static String getRepairDepartmentList =
      '$baseUrl/app/property/work/order/repair/department/list';

  ///维修员工列表接口
  static String getRepairStaffList =
      '$baseUrl/app/property/work/order/repair/staff/list';

  ///获取访客记录
  static String getVisitorRecordList = "$baseUrl/app/mobile/user/visit/list";

  ///新增访客记录
  static String addVisitorRecord = "$baseUrl/app/mobile/user/visit/add";

  ///获取来访详情
  static String getVisitorDetail = "$baseUrl/app/mobile/user/visit/info";

  ///检查用户是否绑定房屋
  static String checkRoomBind = "$baseUrl/app/mobile/user/check/bind";

  ///向访客发送验证码
  static String sendCodeToVisitor = "$baseUrl/app/mobile/user/visit/send";

  ///-------------------我的模块---------------------------------------

  ///获取成员列表接口
  static String getMemberList = '$baseUrl/app/mobile/user/list';

  ///新增家庭成员接口
  static String addMember = '$baseUrl/app/mobile/user/addMember';

  ///更新家庭成员接口
  static String updateMember = '$baseUrl/app/mobile/user/updateMember';

  ///获取成员信息
  static String getMemberInfo = '$baseUrl/app/mobile/user/getMemberInfo';

  ///修改头头像(物业端）
  static String modifyAvatarForProperty =
      '$baseUrl/app/property/personal/headPortrait';

  ///修改密码接口(物业端）
  static String modifyPasswordForProperty =
      '$baseUrl/app/property/personal/password';

  ///获取用户信息
  static String getUserInfo = '$baseUrl/app/mobile/user/info';

  ///编辑用户信息
  static String updateUserInfo = '$baseUrl/app/mobile/user/update';

  ///切换房屋
  static String changeHouse = "$baseUrl/app/mobile/user/room/change";

  ///获取房屋认证信息列表
  static String getRoomCheckList = "$baseUrl/app/mobile/user/roomCheckList";

  ///检查房屋是否有新消息
  static String checkRoomNewMsg = '$baseUrl/app/mobile/user/checkRoom/newMsg';
}
